package com.wfs.spring.thread.Thread;


/**
 * @Auther: wfs
 * @Date: 2019/6/13 21:05
 * @Description:
 */
public class Add {
    private String lockl;

    public Add(String lockl) {
        this.lockl = lockl;
    }

   public void add(){
        synchronized (lockl) {
            ValueObject.list.add("any");
            lockl.notifyAll();
        }
   }
}
